package com.travel.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "酒店订单对象")
public class HotelOrderDto {

    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id",example = "1")
    private String orderId;

    /**
     * 城市id
     */
    @ApiModelProperty(value = "城市id",example = "1")
    private Integer cityId;

    /**
     * 身份证号
     */
    @ApiModelProperty(value = "身份证号",example = "123456789")
    private String idNumber;

    /**
     * 出行人手机号
     */
    @ApiModelProperty(value = "出行人手机号",example = "123456789")
    private String phonenumber;

    /**
     * 酒店名
     */
    @ApiModelProperty(value = "酒店名",example = "如家")
    private String hotelName;

    /**
     * 酒店位置
     */
    @ApiModelProperty(value = "酒店位置",example = "1")
    private String hotelAddress;

    /**
     * 房间id
     */
    @ApiModelProperty(value = "房间id",example = "1")
    private Integer hotelRoomType;

    /**
     * 入住时间
     */
    @ApiModelProperty(value = "入住时间",example = "2020-01-01")
    private LocalDate checkInTime;

    /**
     * 退房时间
     */
    @ApiModelProperty(value = "退房时间",example = "2020-01-02")
    private LocalDate checkOutTime;

    /**
     * 购买数量
     */
    @ApiModelProperty(value = "购买数量",example = "1")
    private Integer count;

    /**
     * 住客名
     */
    @ApiModelProperty(value = "住客名",example = "张三")
    private String guestName;

    /**
     * 邮件
     */
    @ApiModelProperty(value = "邮件",example = "kahdsakdkadk@sdknda.com")
    private String email;

    /**
     * 预计到店时间
     */
    @ApiModelProperty(value = "预计到店时间",example = "2020-01-01")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private LocalDate expectTime;

    /**
     * 特别要求
     */
    @ApiModelProperty(value = "特别要求",example = "随便")
    private String specialRequirement;

}
